import React, { lazy } from "react"
import {
    createBrowserRouter
} from 'react-router-dom'

const Home = lazy(() => import('@/Home'))
const Game = lazy(() => import('@/Game'))

const router = createBrowserRouter([
    {
        path: '/',
        element: <Home />
    },
    {
        path: '/game',
        element: <Game />
    },
    {
        path: '*',
        element: <div>Page not found</div>
    }
])

export default router